import http from "@/api";

export const getMenuListApi = async (data) =>
  await http.get("menu/query/page", data);
export const addMenuApi = async (data) => await http.post("menu/add", data);
export const deleteMenuApi = async (data) =>
  await http.post("menu/delete", data);
export const updateMenuApi = async (data) =>
  await http.post("menu/update", data);
export const detailMenuApi = async (id) => await http.get(`menu/${id}`);
